package com.cangxuan.app.ui.user;

import android.util.Log;
import android.widget.Button;
import android.widget.EditText;
import android.os.Bundle;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.cangxuan.app.R;
import com.cangxuan.app.ui.BaseActivity;
/**
 * 充值界面
 * author:田凯
 */
public class RechargeActivity extends BaseActivity {

    ConstraintLayout rechargeMethod;
    EditText editText;
    Button  btnRecharge;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recharge);
        setTitle("充值");
//
        rechargeMethod=findViewById(R.id.rechargeMethod);
        btnRecharge=findViewById(R.id.btnRecharge);
        editText=findViewById(R.id.editText);

        rechargeMethod.setOnClickListener(view -> {
            Log.i("rechargeMethod","rechargeMethod被点击了。。切换支付银行卡");
        });

        btnRecharge.setOnClickListener(view -> {
            Log.i("btnRecharge","btnRecharge  点击了充值按钮,获取到的用户输入金额为:"+editText.getText()+"元");

        });



    }
}